/**
 * 
 */
package ch.unisi.inf.pfii.teamred.pacman.model;

/**
 * This class describes a position in the Pacman game.
 * 
 * @author mark.pruneri@lu.unisi.ch
 * @author luca.vignola@lu.unisi.ch
 */
public final class Position {

	private int row;
	private int column;

	public Position(final int row, final int column) {
		this.column = column;
		this.row = row;
	}

	public final void setColumn(final int column) {
		this.column = column;
	}

	public final int getColumn() {
		return column;
	}

	public final void setRow(final int row) {
		this.row = row;
	}

	public final int getRow() {
		return row;
	}

	public final void addToPosition(final Position position) {
		row += position.getRow();
		column += position.getColumn();
	}

	public final Position clone() {
		return new Position(row, column);
	}

}
